# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-stegoveritas-binwalk
_pkgname=stegoveritas-binwalk
pkgver=2.1.2
pkgrel=10
pkgdesc='Binwalk release specifically for stegoveritas.'
arch=('any')
url='https://github.com/ReFirmLabs/binwalk'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
provides=('binwalk')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('13dd2bc20f764ff579a3dc7a9e51354467dc2e757396891aab0f4b34c9082e908511a8fca30fb999d560cf004b46b89204164ba4053aa60bf1cf191aa85a9fb2')

build() {
  cd $_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

